package set;

import java.util.HashSet;
import java.util.Set;

public class TestSetRemove {
	
	public static void main(String[] args) {
		Set<String> set = new HashSet<>();
		
		set.add("nihao");
		set.add("world");
		set.add("!");
		
		if(set.remove("nihao")) {
			System.out.println("删除你好成功");
		}
		
		for(String s : set) {
			System.err.println(s);
		}
	}

}
